import { HttpSrv } from 'lfun-bg-comp';
import type { TNewStudents } from './types';
/** 届别管理 */
export class StuAcademiaSrv {
  /** 列表 */
  public static async list(params: TNewStudents.TReqNewStudentsParams): Promise<any> {
    return HttpSrv().get(`/school/v1/graduationyear/page`, { params: { ...params } });
  }

  /** 新增 */
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
  public static async add(params: any): Promise<any> {
    return HttpSrv().post('/school/v1/graduationyear', params);
  }

  /** 更新 */
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
  public static async update(params: any): Promise<any> {
    return HttpSrv().put('/school/v1/graduationyear', params);
  }

  /** 删除 */
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
  public static async delete(id: any): Promise<any> {
    return HttpSrv().delete(`/school/v1/graduationyear/?graduationyear_id=${id}`);
  }
}
